<div class="content">
	<?php foreach($data as $k => $v):?>
		<h3>Xổ số: <?php echo $v['area'];?>- <?php echo show_vn_date($v['date']);?></h3>
		<?php foreach($v['result'] as $kr => $result):?>
			<table class="tbl-list">
				<tr>
					<th class="first">ĐB:</th>
					<th class="last"><?php echo $result->a0;?></th>
				</tr>
				<tr>
					<td>G1:</td>
					<td><?php echo $result->a1;?></td>
				</tr>
				<tr>
					<td>G2:</td>
					<td><?php echo show_prize($result->a2);?></td>
				</tr>
				<tr>
					<td>G3:</td>
					<td>
						<?php echo show_prize($result->a3);?>
					</td>
				</tr>
				<tr>
					<td>G4:</td>
					<td>
						<?php echo show_prize($result->a4);?>
					</td>
				</tr>
				<tr>
					<td>G5:</td>
					<td>
						<?php echo show_prize($result->a5);?>
					</td>
				</tr>
				<tr>
					<td>G6:</td>
					<td>
						<?php echo show_prize($result->a6);?>
					</td>
				</tr>
				<tr>
					<td>G7:</td>
					<td>
						<?php echo show_prize($result->a7);?>
					</td>
				</tr>
				<?php if($result->a8 != ''):?>
				<tr>
					<td>G8:</td>
					<td>
						<?php echo show_prize($result->a8);?>
					</td>
				</tr>
				<?php endif;?>
			</table>
			<table class="tbl-list">
				<tr>
					<th class="first">Đầu</th>
					<th class="last">Đuôi</th>
				</tr>
				<?php 
				$extension = json_decode($result->extension);
				?>
				<?php foreach($extension as $k => $v):?>
				<tr>
					<td><?php echo $k;?></td>
					<td><?php echo show_extension($v);?></td>
				</tr>
				<?php endforeach;?>
			</table>
		<?php endforeach;?>
	<?php endforeach;?>
</div>